//
//  DeviceUUID.m
//  soosoa
//
//  Created by yj_zhang on 16/11/22.
//  Copyright © 2016年 liq. All rights reserved.
//

#import "MantisDeviceUUID.h"
#import "MantisKeyChainStore.h"

@implementation MantisDeviceUUID

+(NSString *)getUUID
{
    if (![MantisKeyChainStore keyChainLoad]) {
        NSLog(@"keyChain load fail");
        [MantisKeyChainStore keyChainSave:[[NSUUID UUID]UUIDString]];
        NSLog(@"keyChain save success");
    }
    else {
        NSLog(@"keyChainLoad: %@ ",[MantisKeyChainStore keyChainLoad]);
    }
    return [MantisKeyChainStore keyChainLoad];
}

@end
